﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using CNotebook;


namespace CNotebook.Settings
{
    class OpenDocManager : ConnectionManager
    {


        public DataTable BindDocument()
        {
            SqlCommand oCommand = new SqlCommand();
            oCommand.Connection = this.Connection;

            oCommand.CommandType = CommandType.StoredProcedure;
            oCommand.CommandText = "exec OPENDOCUMENT";

            SqlDataAdapter oAdpter = new SqlDataAdapter();
            DataTable dt = new DataTable();

            oAdpter.SelectCommand = oCommand;
            oAdpter.Fill(dt);

            return dt;
        }



    }
}
